package com.ny.mapper;

import com.ny.entity.Classrooms;
import com.ny.entity.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    Users findUserByUsernameAndPassword(@Param("username") String username,
                                        @Param("password") String password);

    //修改密码
    boolean updatePassword(@Param("userId") int userId,
                           @Param("newPassword") String newPassword);


    boolean updatePhoneNumber(@Param("userId") int userId,
                              @Param("phoneNumber") String phoneNumber);

    Users getUserById(@Param("userId")int userId);


}
